import Vue from "vue";
import VueStore from "@/store";

export function isAuth(key) {
  const { permissionList } = VueStore.getters["authority/activeRoleAuthority"];
  return permissionList.indexOf(key) !== -1 || false;
}

Vue.prototype.isAuth = isAuth;
